html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	min-width: 320px;
	font-family: Helvetica;
}

#wrap {
	height: 100%;
	width: 100%;
	background-color: black;
	padding: 0 0.25rem 0 0.25rem;
	margin: 0 auto;
}

#states {
	font-weight: bold;
	color: rgb(194, 255, 173);
	overflow: auto;
}

.title {
	float:left;
	font-size: 0.5rem;
	width: 2rem;
	padding: 0.2rem 0 0 0;
	text-align: center;
	box-sizing: border-box;
}

.state {
	float:left;
	font-size: 0.8rem;
	padding: 0.1rem 0 0 0;
	width:2rem;
	text-align: left;
}

#score {
	float:left;
	padding: 0.1rem 0 0 0.1rem;
	font-size: 0.8rem;
}

#next{
	float:left;
	width: 2.5rem;
}

#canvas {
	width: 13rem;
	float: left;
	background-color: black;
}

.row{
	float: left;
}

.block {
	float: left;
	background-color: rgb(17, 17, 17);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	border: solid black 1px;
}

.block-0 {
	background: rgb(239, 32, 41);
}

.block-1 {
	background-color: rgb(212, 197, 0);
}

.block-2 {
	background-color: rgb(245, 130, 31);
}

.block-3 {
	background-color: rgb(66, 198, 240);
}

.block-4 {
	background-color: rgb(216, 56, 203);
}

.block-5 {
	background-color: rgb(75, 216, 56);
}

.block-6 {
	background-color: rgb(90, 101, 173);
}

.innerBlock {
	margin: 15% auto;
	height: 66%;
	width: 70%;
}

/*.innerBlockFull {
	-webkit-box-shadow: 2px 2px 2px 0px inset;
	box-shadow: 2px 2px 2px 0px inset;
}*/

.flash:before {
	content: ' ';
	position: absolute;
	background: white;
	width: 25%;
	height: 100%;
	top: 0;
	left: -100%;
	opacity: 0.7;
	-webkit-transform: skewX(-25deg);
	transform: skewX(-25deg);
	-webkit-animation: flashKey 0.5s 1;
	animation: flashKey 0.5s 1;
}

.clear{
	-webkit-animation: clearKey 0.4s 1 ease-in;
	animation: clearKey 0.4s 1 ease-in;
}

@-webkit-keyframes flashKey {
	from {
		left: -100%;
	}
	to {
		left: 125%;
	}
}

@keyframes flashKey {
	from {
		left: -100%;
	}
	to {
		left: 125%;
	}
}

@-webkit-keyframes clearKey {
	0%{
		-webkit-transform:translateX(0);
		transform:translateX(0);
	}
	50%{
		-webkit-transform:translateX(-15%);
		transform:translateX(-15%);
	}
	100%{
	    -webkit-transform:translateX(100%);
	    transform:translateX(100%);
	}
}

@keyframes clearKey {
	0%{
		-webkit-transform:translateX(0);
		transform:translateX(0);
	}
	50%{
		-webkit-transform:translateX(-15%);
		transform:translateX(-15%);
	}
	100%{
	    -webkit-transform:translateX(100%);
	    transform:translateX(100%);
	}
}